package com.hoshiibuy.fileServer.model;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 文件上传参数
 * 
 * @author Mr.wu
 *
 */
@Data
@ApiModel("文件上传参数")
public class UploadFileRequest implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "存储空间名称", notes = "上传时指定的存储空间", required = true)
	private String bucketName;

	public String getBucketName() {
		return bucketName;
	}

	public void setBucketName(String bucketName) {
		this.bucketName = bucketName;
	}

	public String getFolder() {
		return folder;
	}

	public void setFolder(String folder) {
		this.folder = folder;
	}

	@ApiModelProperty(value = "文件key", notes = "上传时存储的对象key，上传完毕后原样返回，如不传则使用文件MD5值。")
	private String objectKey;

	@ApiModelProperty(value = "文件名", notes = "批量上传时需和key对应", required = true)
	private String fileName;

	/**
	 * 上传文件夹
	 * 
	 */
	@ApiModelProperty(value = "文件夹路径")
	private String folder;

	public String getObjectKey() {
		return objectKey;
	}

	public void setObjectKey(String objectKey) {
		this.objectKey = objectKey;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

}
